package genhandle

import (
	"fginTpl/gin_gen/globals"
	"fginTpl/utils"
	"path/filepath"
)

// 生成输入输出参数文件
func GenViewModels() {
	// 生成go 文件
	if err := utils.TourchFile(filepath.Join(globals.BASEDIR, "./view_models/example_view.go"), "./gin_templates/view_models/example_view.tpl", "viewModelsGoTpl", nil); err != nil {
		panic(err)
	}
}
